package com.youku.util;

import com.youku.expression.Position;

public class Assert {

	public static void isEmail(String email) {
		
	}

	public static void isPhoneNumber(String cellNumber) {
		
	}

	public static void isCase(Position position) {
		if(position.getCaseId()==null)
			throw new RuntimeException("该测试用例的编号不能为空");
		
		if(position.getSuiteId()==null)
			throw new RuntimeException("用例所属用例组的编号不能为空");
		
		if(position.getProjectId()==null)
			throw new RuntimeException("用例所属项目的编号不能为空");
	}

}
